from django.db import models
from django.contrib.auth.models import AbstractUser

# Create your models here.


class Ouser(AbstractUser):
    nickname = models.CharField(verbose_name='昵称', max_length=15, blank=True)
    bio = models.TextField(verbose_name='个人简介', max_length=100, blank=True)
    avatar = models.ImageField(verbose_name='头像', upload_to='avatar', default='avatar/default.png')

    def __str__(self):
        return self.username